﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Site1.Master" AutoEventWireup="true" CodeBehind="createGame.aspx.cs" Inherits="Game_Admin_Demo.admin.createGame" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 150px;
        }
        .auto-style2 {
            width: 498px;
        }
    </style>
     <link href="css/ui-lightness/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" />
    <script src="js/jquery-ui-1.9.2.custom.min.js"></script>
    <script src="ck/ckfinder/ckfinder.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
   <div>
        <table style="width: 100%;">
            <tr>
                <td class="auto-style1">Name</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxName" runat="server" Width="255px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxName" ForeColor="#CC9900">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">Quantity</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxQuantity" runat="server" Width="255px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxQuantity" Display="Dynamic" ForeColor="#CC9900">*</asp:RequiredFieldValidator>
                    <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" ErrorMessage="Number" ForeColor="#996633" ClientValidationFunction="test" ControlToValidate="TextBoxQuantity"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style3">ImageURL</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxImage" runat="server" Width="255px"></asp:TextBox> <input id="chonanhbia" type="button" value="Chon anh" />
                </td>
                <td class="auto-style5">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxImage" ForeColor="#CC9900">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">Discription</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxDescription" runat="server" TextMode="MultiLine" Width="255px"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">Status</td>
                <td class="auto-style2">
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">Date</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxDate" runat="server" Width="255px"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">Price</td>
                <td class="auto-style2">
                    <asp:TextBox ID="TextBoxPrice" runat="server" Width="255px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBoxPrice" ForeColor="#CC9900">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">Category</td>
                <td class="auto-style2">
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">&nbsp;</td>
                <td class="auto-style2">
                    <asp:Button  ID="Button1" runat="server" Text="Save" Width="87px" OnClick="Button1_Click" />
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>
        
        
    </div>
    <script src="js/site.js"></script>
     <script>


         function test(sender, args) {
             var num = document.getElementById('ContentPlaceHolder1_TextBoxQuantity').value;

             if (isNaN(num)) {

                 args.IsValid = false;
             }
             else {

                 args.IsValid = true;
             }
         }
    </script>
</asp:Content>
